<h1><?php __d('lil_media', 'File Upload'); ?></h1>
<div class="form">
<?php
	echo $this->Form->create(null, array(
		'type' => 'file', 
		'url'  => array(
			'path' => (!empty($this->params['named']['path'])) ? $this->params['named']['path'] : null
		)
	));
	
	echo $this->Form->input('filename', array(
		'type'  => 'file',
		'label' => __d('lil_media', 'Select a file', true) . ':'
	));
	
	echo $this->Form->submit(__d('lil_media', 'Upload', true));
	echo $this->Form->end();
?>
</div>